package com.mofeng.myshop.domain.dto.search;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mofeng.myshop.domain.po.UserBase;
import com.mofeng.myshop.domain.dto.base.SearchBaseMp;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Builder(toBuilder = true)
public class UserSearchDto extends SearchBaseMp {
    private String userKey;
    private String roleId;
    private String powerId;

    private String moneyMin;
    private String moneyMax;

    private String amountMin;
    private String amountMax;



    public String getRoleId() {
        return this.webNullHandle(this.roleId);
    }

    public String getPowerId() {
        return this.webNullHandle(this.powerId);
    }

    public String getMoneyMin() {
        return this.webNullHandle(this.moneyMin);
    }

    public String getMoneyMax() {
        return this.webNullHandle(this.moneyMax);
    }

    public String getAmountMin() {
        return this.webNullHandle(this.amountMin);
    }

    public String getAmountMax() {
        return this.webNullHandle(this.amountMax);
    }

    public Page<UserBase> getPageMp() {
        return super.getPageMp(UserBase.class);
    }
}
